!
! template: bgpd/templates/internal/instance.conf.j2
!
  neighbor {{ neighbor_addr }} remote-as {{ bgp_session['asn'] }}
  neighbor {{ neighbor_addr }} description {{ bgp_session['name'] }}
  neighbor {{ neighbor_addr }} timers 3 10
  neighbor {{ neighbor_addr }} timers connect 10
!
{% if neighbor_addr | ipv4 %}
  address-family ipv4
    neighbor {{ neighbor_addr }} peer-group INTERNAL_PEER_V4
!
{%   if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' or CONFIG_DB__DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
    neighbor {{ neighbor_addr }} next-hop-self force
{%   endif %}
!
{% elif neighbor_addr | ipv6 %}
  address-family ipv6
    neighbor {{ neighbor_addr }} peer-group INTERNAL_PEER_V6
!
{%   if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' or CONFIG_DB__DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
    neighbor {{ neighbor_addr }} next-hop-self force
{%   endif %}
{% endif %}
!
{%   if 'rrclient' in bgp_session and bgp_session['rrclient'] | int != 0 %}
    neighbor {{ neighbor_addr }} route-reflector-client
{%   endif %}
!
!
    neighbor {{ neighbor_addr }} activate
  exit-address-family
!
! end of template: bgpd/templates/internal/instance.conf.j2
!
